//

// (  )
//

package com.tools.acceleratecore.logic.accelerate.process.impl;

import android.content.Context;
import com.tools.acceleratecore.AccelerateCoreFactory;
import com.tools.acceleratecore.logic.accelerate.process.intf.IProcessItem;
import com.tools.acceleratecore.logic.accelerate.process.intf.IProcessKiller;
import com.tools.acceleratecore.logic.common.impl.AppItem;

public class ProcessItem extends AppItem implements IProcessItem {
    private Context mContext = null;
    private int mProcessID = 0;
    private int mUserID = 0;
    private String mProcessName = null;
    private int mImportance = 400;
    private IProcessKiller mIProcessKiller = null;

    public ProcessItem() {
        this.mContext = AccelerateCoreFactory.getApplication();
        this._init();
    }

    private void _init() {
    }

    public int getProcessID() {
        return this.mProcessID;
    }

    public int getUserID() {
        return this.mUserID;
    }

    public String getProcessName() {
        return this.mProcessName;
    }

    public int getProcessImportance() {
        return this.mImportance;
    }

    public boolean kill() {
        return this.mIProcessKiller == null?false:this.mIProcessKiller.kill();
    }

    public void setProcessID(int nProcessID) {
        this.mProcessID = nProcessID;
    }

    public void setUserID(int nUserID) {
        this.mUserID = nUserID;
    }

    public void setProcessName(String strProcessName) {
        this.mProcessName = strProcessName;
    }

    public void setProcessImportance(int nImportance) {
        this.mImportance = nImportance;
    }

    public void setProcessKiller(IProcessKiller iProcessKiller) {
        this.mIProcessKiller = iProcessKiller;
    }
}
